<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../jquery-3.6.0.js"></script>
</head>
<body>
<?php
include("../db/DbManage.php");
$dbManage = new DbManage();
$row = $_GET["row"];
$column = $_GET["column"];
$cinema_id = $_GET["cinema_id"];
$movie_id = $_GET["movie_id"];
echo $row;
echo $column;
echo $cinema_id;
echo $movie_id;
$sqlTxt = "INSERT INTO seat_info VALUES (" . $cinema_id . "," . $movie_id . "," . $row . "," . $column . ",1)";
$result = $dbManage->executeSqlTxt($sqlTxt);
if ($result == true) {
    header("Location:choose_seat.php?movie_id=" . $movie_id . "&cinema_id=" . $cinema_id);
}
?>
</body>
</html>
